import os
import socket
from time import sleep

s = socket.socket(socket.AF_INET,socket.SOCK_STREAM)
s.connect(('127.0.0.1',9987))
s.send(b"123")
sleep(1)
print("ready to receive")
buffer = s.recv(1024)
print(buffer)